'use strict';
const {
  Model
} = require('sequelize');
module.exports = (sequelize, DataTypes) => {
  class Role extends Model {
    /**
     * Helper method for defining associations.
     * This method is not a part of Sequelize lifecycle.
     * The `models/index` file will call this method automatically.
     */
    static associate(models) {
      // define association here
    }
  };
  Role.init({
    roleId: DataTypes.INTEGER,
    accountId: DataTypes.INTEGER,
    serverId: DataTypes.INTEGER,
    name: DataTypes.STRING,
    resId: DataTypes.INTEGER,
    race: DataTypes.INTEGER,
    sex: DataTypes.INTEGER,
    relive: DataTypes.INTEGER,
    reliveList: DataTypes.STRING,
    level: DataTypes.INTEGER,
    levelReward: DataTypes.STRING,
    exp: DataTypes.INTEGER,
    money: DataTypes.INTEGER,
    mapId: DataTypes.INTEGER,
    x: DataTypes.INTEGER,
    y: DataTypes.INTEGER,
    bangId: DataTypes.INTEGER,
    firstCharge: DataTypes.INTEGER,
    color: DataTypes.STRING,
    star: DataTypes.INTEGER,
    shane: DataTypes.INTEGER,
    addPoINTEGER: DataTypes.STRING,
    xiuPoINTEGER: DataTypes.STRING,
    xiuLevel: DataTypes.INTEGER,
    title: DataTypes.STRING,
    skill: DataTypes.STRING,
    bagItem: DataTypes.STRING,
    lockerItem: DataTypes.STRING,
    partner: DataTypes.STRING,
    pet: DataTypes.INTEGER,
    getpet: DataTypes.INTEGER,
    equipList: DataTypes.STRING,
    taskState: DataTypes.STRING,
    partnerList: DataTypes.STRING,
    chargeSum: DataTypes.INTEGER,
    rewardRecord: DataTypes.INTEGER,
    getGift: DataTypes.INTEGER,
    shuilu: DataTypes.STRING,
    activeSchemeName: DataTypes.STRING,
    friendList: DataTypes.STRING,
    lastOnline: DataTypes.DATE,
    gmLevel: DataTypes.INTEGER,
    state: DataTypes.INTEGER,
    getGift2: DataTypes.INTEGER
  }, {
    sequelize,
    modelName: 'Role',
  });
  return Role;
};